package com.groupseven.happycampus.service;

import com.groupseven.happycampus.common.bo.BicycleBo;
import com.groupseven.happycampus.common.vo.BicycleBrandPieVo;
import com.groupseven.happycampus.common.vo.BicycleColorBarVo;
import com.groupseven.happycampus.common.vo.LayuiPageVo;
import com.groupseven.happycampus.common.pojo.Bicycle;

import java.util.List;
import java.util.Map;

public interface BicycleService {

    /**
     * 实现查询所有自行车的数据的同时实现分页查询
     * @params params 前端接受到的实现分页查询的请求 是一个 Map 集合形式的参数
     * @return 返回一个 LayuiPageVo<Bicycle> 类型的对象
     */
    LayuiPageVo<Bicycle> bicycleListPageData(Map<String, Object> params);

    int bicycleAdd(Bicycle bicycle);


    int bicycleUpdate(Bicycle bicycle);

    int bicycleDelete(Integer id);

    List<BicycleBo> bicycleExcelData(Bicycle bicycle);

    int deleteBicycleByIds(String ids);

    List<BicycleColorBarVo> colorBarData();

    List<BicycleBrandPieVo> brandPieData();
}
